<% if logged_in? -%>
  <div id="user-bar-greeting">Logged in as <%= link_to "#{current_user.login.capitalize}", dashboard_path %>.</div>
  <div id="user-bar-action"  >(<%= link_to "Log out", logout_path, { :title => "Log out" }    %>)</div>
<% else -%>
  <div id="user-bar-greeting">
    <!-- <%= link_to_login_with_IP 'Not logged in', :style => 'border: none;' %> -->
    Not logged in.
  </div>
  <div id="user-bar-action">
    <%= link_to "Log in",  login_path,  { :title => "Log in" } %> or 
    <%= link_to "sign up", signup_path, { :title => "Create an account" } %>
  </div>
<% end -%>
